import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'
// 引入uView
import uView from "uview-ui";
Vue.use(uView);

// 引入状态管理器
import store from '@/store/index.js';

// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore);

// 引入全局方法
import publicMethods from "@/utils/publicMethods.js";
Vue.use(publicMethods, app)

Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})

const app = new Vue({
	store,
    ...App
})

app.$mount()
